import pytz
target_tz = pytz.timezone('Asia/Shanghai')  # 替换成你要的目标时区
converted_time = local_time.astimezone(target_tz)
print(f"Time in Shanghai: {converted_time}")